﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;

namespace BookStore.Data
{
    public class sqlDataProvider
    {
        static string strConnect = ConfigurationManager.ConnectionStrings["connectData"].ConnectionString;
        public static SqlConnection getConnect() {
            SqlConnection con = new SqlConnection(strConnect);
            if (con.State==ConnectionState.Closed)
            {
                con.Open();
            }
            return con;
        }
    }
}
